package com.xuduo.amd.dao;

import com.xuduo.amd.dto.ApplicationInfoResp;
import com.xuduo.amd.entity.EamApplicationEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EamApplicationDao {


    int insert(EamApplicationEntity record);
    int insertSelective(EamApplicationEntity record);

    @Insert("script")
    int InsertBatch(@Param("record")List<EamApplicationEntity> records);

    EamApplicationEntity selectByPrimaryKey(String instanceId);

    int updateByPrimaryKeySelective(EamApplicationEntity record);

    int updateByPrimaryKey(EamApplicationEntity record);


    //根据基线id查询应用信息

    @Select("")
    List<ApplicationInfoResp> findApplicationIfoById(@Param("id")String id);
}
